<template>
	<view class="py-40 flex bg-FFFFFF "
		style="padding-left: 105rpx;padding-right: 105rpx;border-radius:  0rpx 0rpx 10rpx 10rpx;">
		<view class="aj-center bg-FFFFFF" @click="quxiao" style="margin-right: 80rpx;width: 200rpx;
				height: 60rpx;border: 1rpx solid #707070;border-radius: 40rpx;">
			取消
		</view>
		<view class="aj-center " @click="submit" style="width: 200rpx;border-radius: 40rpx;
				height: 60rpx;background: linear-gradient(112deg, #FF9966 0%, #FF5E62 100%);">
			确认核销
		</view>
	</view>
</template>

<script>
	export default {
		props: ['order_id'],
		data() {
			return {

			}
		},
		methods: {
			quxiao() {
				uni.navigateBack({
					delta: 1
				})
			},
			submit() {
				this.$https('doctindex.confirmWriteOff', {
					order_id: this.order_id
				}).then(res => {
					if (res.data.state == 4) {
						this.$u.toast(res.msg);
					}
					if (res.data.state != 4) {
						this.$u.toast(res.msg);
					}
					setTimeout(()=>{
						uni.navigateBack({
							delta: 1
						})
					},2000)
				})
			}
		}
	}
</script>

<style scoped>
	@import url("@/common/css/fress.css");
	@import url("@/common/css/mycss.css");
</style>
